
Hi

I made a program for the management of the old serial mouse (those with the RS-232) is very easy to manage with interrupts.

I interfaced the Maximite with a TTL-RS232 converter of the type SP3222 Sypex compatible with the MAX3222E.
I have had many problems with the converter ICL3225 because it has the "Enhanced Automatic Powerdown". So avoid the chips that have this feature or the like.

These are the connections:

SP3222E to Maximite:
pin12(T1in) to MMpin16 - pin13(R1out) to MMpin15 - power gnd/3.3v and pin11(T2in) to Gnd.

SP3222E to RS-232 Male:
pin8(T2out) to rs232pin7 - pin14(R1in) to rs232pin2 - pin15(T1out) to rs232pin3 and Gnd to rs232pin5

Maximite COM1: pin 15 and 16


The pointer is quite fast and responsive.

With the first test program, Mouse04B, you can test the mouse to be compatible with 'microsoft mode' (almost all) because only come out with 3 bytes for each event. However, you can easily change acting on a pin of the chip (see datasheet).

I used mice with chip HM8370 and HT6513B with the same results.
It important that the connections of mouse with RS-232 are 4 wires. A mouse with 5 wires did not work because he needed other signals.

The second test program, Mouse06B, load a sprite that acts as a pointer and pressing the left mouse button draw.

IMPORTANT when you run the program do not move the mouse.
I have not used the bit sync content in the first byte.

I hope you enjoy it.


Raros.